﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="addNews.ascx.cs" Inherits="addNews" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<table cellpadding="5" cellspacing="5">
<tr height="20px">
    <td colspan="2"><strong>Добавить новость:</strong><td>
</tr>
<tr>
    <td>Заголовок:</td>
    <td>
        <asp:TextBox ID="newsTitle" ValidationGroup="mainValid" runat="server" />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Надо заполнить поле" ValidationGroup="mainValid" ControlToValidate="newsTitle" Display="Dynamic" />
    </td>
    <td>
</tr>
<tr>
    <td>Превью изображение:</td>
    <td>
        <asp:FileUpload ID="fu_Img" runat="server" />
    </td>
    <td>
</tr>
<tr>
    <td>Тело новости:</td>
    <td>
        <FCKeditorV2:FCKeditor ID="content" Height = "600px" runat="server"></FCKeditorV2:FCKeditor>        
    </td>
    <td>
</tr>
<tr>
    <td><asp:ImageButton ID="btAdd" OnClick="Add" AlternateText="Добавить новость" ImageUrl="~/Admin/img/add.jpg" ValidationGroup="mainValid" runat="server" /></td>
</tr>
</table>
